cf-sin sequency amplitude samples <&optional phase-modulation> list
Conversion is a key element in SCOM composing. Vectors can become integers, integers can become symbols, and so on. In this respect cf-sin provides a more specific facility than cfunction in enabling both conversion and substitution
(setq sym1 '(a b c d e f g h i j k))
(setq sym2 '((a b c d e f) (g h i j k l)))
(cf-sin '(1 2 3 5) '(-.5 .5) 6 sym1)
=> ((f a a f k k) (f a k f a k) (i i j h k a) (f a a f k k))
Here, a variable called sym1 is a list of symbols between a and k. This becomes a reference sequence for a conversion process, from vectors generated via the function gen-sin, through vectors to integers, through integers-to-symbols in the range a to k. This symbol list is substituted to make an appropriate quantitive sequence. In the function cf-sin the function gen-sin is subsummed into the function whole.
(cf-sin '(1 2 3 5) '(-.5 .5) '(6 4) sym1)
=> ((f a a f k k) (g e k a) (i i j h k a) (f k f a))
In the first parameter <frequency> the composer may give a list of frequencies as integers to apply to a series of sublists of numbers of symbols derived from the <samples> parameter. This parameter effectively is a symbol-divide list. In the example above '(6 4) divides the samples into lists of six and four symbols respectively.
(cf-sin '(1 2 3 5) .5 12 90 sym1)
=> ((k j i f d b a b c f h j)
(k i d a c h k i d a c h)
(k f a f k f a f k f a f)
(k b h f c j a j d f i b))
The remaining parameters of <amplitude> and <phase-modulation> refer to those specific to the function gen-sin.
(cf-sin '(1 2 3 5) .5 6 '(90 45) sym2)
=> ((f e b a b e) (l k g l k g) (f a f a f a) (k i g h j l))
(cf-sin '(1 2 3 5) .5 6 '(90 45) '(1 .3 64) sym2)
=> ((d f f c a b) (j l g k k g) (d d d b f a) (l h g h i i))